#!/usr/bin/env python
# -*- encoding: utf-8 -*-

from socket import *

clnt_sock = socket(AF_INET, SOCK_DGRAM)
clnt_sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
#clnt_sock.bind(('', 8888))

buff = "Hi Yo Man~!!"
print "전송 데이터 : [%s]" % buff
len = clnt_sock.sendto(buff, ('', 9999))
print "전송 데이터 길이 : [%d]" % len

buff, addr = clnt_sock.recvfrom(1024)
print "수신 데이터 : [%s]" % buff
print "발신지 정보 : ", addr

